package com.github.binarywang.demo.wx.miniapp.enums;

import lombok.Getter;

@Getter
public enum ResponseCode {

    SUCCESS(200, "操作成功"),
    ERROR(500, "全局异常"),
    METHOD_ARGUMENT_NOT_VALID(1001, "参数校验异常"),
    NOTFOUND(1003, "未找到该条记录"),
    VALID_USER_ERROR(1011, "没有获取到用户信息"),
    VALID_TOKEN_ERROR(1012, "token有误"),
    NO_AUTH(1015, "没有权限");

    private int code;
    private String message;

    ResponseCode(int code, String message) {
        this.code = code;
        this.message = message;
    }


}
